package com.tgu.home_action.controller;

import com.tgu.home_action.pojo.ResponseData;
import com.tgu.home_action.pojo.Track;
import com.tgu.home_action.service.TrackService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "轨迹管理")
@RestController
@RequestMapping("/track")
public class TrackController {
    @Autowired
    private TrackService trackService;

    @ApiOperation("查询轨迹（可通过caseId和volunteerId筛选）")
    @GetMapping
    public ResponseData<List<Track>> getTrack(Track track){
        return trackService.getTrack(track);
    }
}
